//
//  UserLevelViewController.m
//  何五路
//
//  Created by dong on 8/9/15.
//  Copyright (c) 2015年 _ADY. All rights reserved.
//

#import "UserLevelViewController.h"

@interface UserLevelViewController (){
    UIView *view1,*viewTop;
    UILabel *label1,*jdLabel;
    UIScrollView *scrollViewBody;
    CGSize WindowSize;
    UIColor *grayColor,*yellowColor,*grayFontColor;
}

@end

@implementation UserLevelViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initColor];
    WindowSize=CGSizeMake(self.view.frame.size.width, self.view.frame.size.height-64);
    self.automaticallyAdjustsScrollViewInsets = NO;
    
    scrollViewBody=[[UIScrollView alloc]initWithFrame:CGRectMake(0, 64, WindowSize.width, WindowSize.height)];
    [scrollViewBody setBackgroundColor:bgColor];
    [self.view addSubview:scrollViewBody];
    // Do any additional setup after loading the view.
    [self initTop];
}

-(void)initTop{
    viewTop=[[UIView alloc]initWithFrame:CGRectMake(-1, 0, WindowSize.width+2, 40)];
    [viewTop setBackgroundColor:[UIColor whiteColor]];
    [viewTop.layer setBorderColor:grayColor.CGColor];
    [scrollViewBody addSubview:viewTop];
    
    label1=[[UILabel alloc]initWithFrame:CGRectMake(50, 0, 100, viewTop.frame.size.height)];
//    [label1 setTextAlignment:NSTextAlignmentCenter];
//    [label1 setTextColor:fontColor];
    [label1 setFont:[UIFont boldSystemFontOfSize:15]];
    [label1 setText:@"会员级别"];
    [viewTop addSubview:label1];
    
    view1=[[UIView alloc]initWithFrame:CGRectMake(0, viewTop.frame.origin.y+viewTop.frame.size.height, 150, 40)];
    [view1 setBackgroundColor:[UIColor clearColor]];
    [scrollViewBody addSubview:view1];
}

-(void)initColor{
    grayColor=[UIColor colorWithRed:219/255.f green:219/255.f blue:219/255.f alpha:1.0];
    yellowColor=[UIColor colorWithRed:255/255.f green:198/255.f blue:0/255.f alpha:1.0];
    grayFontColor=[UIColor colorWithRed:100/255.f green:100/255.f blue:100/255.f alpha:1.0];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
